package Student;

import java.util.SplittableRandom;

public class Student  /*implements Comparable<Student>*/{
    private String  name;
    private  int age;
    private  Float score;

    public Student() {
    }

    public Student(String name, int age, Float score) {
        this.name = name;
        this.age = age;
        this.score = score;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Float getScore() {
        return score;
    }

    public void setScore(Float score) {
        this.score = score;
    }

   /* @Override
    public int compareTo(Object o) {
        Student stu=(Student)o;
        int m=(int)((((Student) o).sorce-sorce)*100);//成绩做降序排序
        m = m == 0 ? (age - ((Student) o).age) : m;//成绩一样，那在成绩排序的基础上按照年龄由小到大排序
        return m;
    }*/
}

